import lookUp from "./lookUp";
import enderTemplate from "./renderTemplate.js";
export default function parseArray(token, data) {
  let v = lookUp(data, token[1]);
  let resultStr = '';
  for (let i in v) {
    resultStr += enderTemplate(token[2], { ...v[i], '.': v[i] })
  }
  return resultStr;
}